package util

import (
	"fmt"
	"log"
	"os"
	"time"
)



func RecordBigProjectLog(str string) {
	file := fmt.Sprintf("big-project-list-%s.log", time.Now().Format("20060102"))
	//创建文件
	f, err := os.OpenFile(file, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
	if err != nil {
		log.Fatalf("打开文件失败：", err)
	}
	defer f.Close()
	log.SetOutput(f)
	log.Println(str)

}
